package com.pattern.factory.abstractp.factory;

import com.pattern.factory.FixPrizeActivity;
import com.pattern.factory.ProductEnum;
import com.pattern.factory.RandomPrizeActivity;
import com.pattern.utils.SpringUtils;

public class ConcreteFactory1 implements AbsTractFactory {
    @Override
    public FixPrizeActivity getFixPrizeActivity() {
        System.out.println("具体工厂1--》生产具体产品");
        return SpringUtils.getBean(ProductEnum.FIX_PRIZE.getProductCode());
    }

    @Override
    public RandomPrizeActivity getRandomPrizeActivity() {
        System.out.println("具体工厂1--》生产具体产品");
        return SpringUtils.getBean(ProductEnum.RANDOM_PRIZE.getProductCode());
    }
}
